(function() {

	var skill = {
		save: function() {
			db.update(config.dbname.findPaw, this._id, this);
		},
		destroy: function() {
			db.remove(config.dbname.findPaw, this._id);
		},
		resetPaw: function(new_paw) {
			var Con = this.type === "user" ? UserCon : BusCon;
			var people = Con.get(this.people_id);
			//强制修改密码
			people._setPassword(new_paw);
			//一次性，使用完就进行销毁
			this.destroy();
			return people;
		}
	}
	module.exports = skill;
	var db = require("../db/index");
	var BinaCon = require("../bina/_con");
	var UserCon = require("../user/_con");
	var BusCon = require("../bus/_con");
	var GoodsCon = require("../goods/_con");
	var AchCon = require("../ach/_con");
	var PayAchCon = require("../pay_ach/_con");
	var CommentCon = require("../comment/_con");
	var EvaluationCon = require("../eval/_con");
	var ClassifyCon = require("./_con");
	var config = require("../_include/config");
	var data_cut = require("../_include/data_cut");
	var $Array = require("../_include/$.Array");
	var $Object = require("../_include/$.Object");
	var helper = require("../_include/helper");

}());